package frame
{
	import loaderData.LoaderSys;
	
	import ui.control.GuiScrollBar;
	import ui.control.GuiScrollPane;
	import ui.control.GuiTree;
	import ui.control.GuiWindow;

	public class UIListUIFrame extends GuiWindow
	{
		public var tree:GuiTree;
		public var pane:GuiScrollPane;
		
		public function UIListUIFrame()
		{
			tree = new GuiTree();
			tree.openImg = LoaderSys.inst.getBitmapDataByClass("btn_01_1");
			tree.closeImg = LoaderSys.inst.getBitmapDataByClass("btn_01_2");
			
			pane = new GuiScrollPane();
			pane.graphics.lineStyle(1,0x999999);
			pane.graphics.beginFill(0xDFDFDF,0.8);
			pane.graphics.drawRect(0,0,199,499);
			pane.graphics.endFill();
			
			addChild(pane);
			pane.nWidth = 200;
			pane.nHeight = 500;
			pane.isScale = true;
			
			var bar:GuiScrollBar = new GuiScrollBar();
			bar.x = 200 - bar.nWidth - 1;
			bar.y = 1;
			bar.nHeight = 498;
			pane.addChild(bar);
		}
	}
}